package com.wn.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author yellow Docter
 * @date 2023 -08-07
 * @desc
 */
@EnableCircuitBreaker   //开启服务降级
@EnableFeignClients("com.wn.api")
@ComponentScan({"com.wn.api.fallback","com.wn.consumer"})
@SpringBootApplication
public class UserConsumer {

    public static void main(String[] args) {

        SpringApplication.run(UserConsumer.class,args);

    }

}
